package com.jackchen.common.filter;

import java.util.List;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.context.ConfigurableWebApplicationContext;
import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;

public class MyContextLoaderListener extends ContextLoaderListener {

	@Override
	public void contextInitialized(ServletContextEvent event) {
		// TODO Auto-generated method stub
		super.contextInitialized(event);
	}

	@Override
	protected ContextLoader createContextLoader() {
		// TODO Auto-generated method stub
		return super.createContextLoader();
	}

	@Override
	protected WebApplicationContext createWebApplicationContext(
			ServletContext sc, ApplicationContext parent) {
		// TODO Auto-generated method stub
		return super.createWebApplicationContext(sc, parent);
	}

	@Override
	protected WebApplicationContext createWebApplicationContext(
			ServletContext sc) {
		// TODO Auto-generated method stub
		return super.createWebApplicationContext(sc);
	}

	@Override
	protected void customizeContext(ServletContext servletContext,
			ConfigurableWebApplicationContext applicationContext) {
		// TODO Auto-generated method stub
		super.customizeContext(servletContext, applicationContext);
	}

	@Override
	protected List<Class<ApplicationContextInitializer<ConfigurableApplicationContext>>> determineContextInitializerClasses(
			ServletContext servletContext) {
		// TODO Auto-generated method stub
		return super.determineContextInitializerClasses(servletContext);
	}

	@Override
	protected ApplicationContext loadParentContext(ServletContext servletContext) {
		// TODO Auto-generated method stub
		return super.loadParentContext(servletContext);
	}

}
